import MemberStore from './MemberStore';
import MemberBroker from "./MemberBroker";
import authCheck from '@/tool/authCheck';
import adminType from '@/tool/adminType';

const _path = [
    { path: '', component: MemberStore },
    { path: '/经纪人', component: MemberBroker }
];

export const path = () => {
    if (!authCheck('*', '人员')) return [];
    if (adminType() == 1) return _path;
    return [{ path: '', component: MemberBroker }];
};

export const pathName = '人员';